package com.bit.book.mapper;

import com.bit.book.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserInfoMapper {

    /**
     * 根据输入的账号名, 到表中查询对应的密码, 以便后续拿查询到的密码，和输入的密码进行校验
     * @param username
     * @return
     */
    @Select("select* from user_info where user_name = #{username}")
    UserInfo queryUserInfoByName(String username);
}
